package com.yy.micro.magic.data.service.plan.impl;

import com.yy.micro.magic.data.entity.MagicPlanScheduleEntity;
import com.yy.micro.magic.data.repository.MagicPlanScheduleRepository;
import com.yy.micro.magic.data.service.plan.MagicPlanScheduleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MagicPlanScheduleServiceImpl implements MagicPlanScheduleService {
    @Autowired
    private MagicPlanScheduleRepository repository;
    @Override
    public MagicPlanScheduleEntity save(MagicPlanScheduleEntity scheme) {
        return repository.save(scheme);
    }

    @Override
    public MagicPlanScheduleEntity load(long taskId) {
        return repository.findById(taskId).get();
    }
}
